basepath=$(cd `dirname $0`; pwd)
day=` date +"20%y-%m-%d"`
hislog=$basepath/logs/build-asset-$day.log
if [ ! -f ${hislog} ]; then
   touch $hislog
fi

ps -ef|grep "$basepath/data-asset.jar"|grep -v grep|awk  '{print $2}' |xargs kill -9
cat $basepath/build-asset.log >> $hislog
cat /dev/null > $basepath/build-asset.log
